package com.css.fxfzypg.modules.model.service;

import com.css.fxfzypg.base.response.RestResponse;
import com.css.fxfzypg.modules.model.entity.DataPbeLosses;
import com.css.fxfzypg.modules.model.entity.EconomicLosses;
import com.css.fxfzypg.modules.model.vo.EconomicVO;

import javax.servlet.http.HttpServletResponse;
import java.util.List;
import java.util.Map;

/**
 * @author DBJ
 */
public interface EconomicLossesService {
    Map<String, Object> getPage(EconomicVO vo, int curPage, int pageSize);

    EconomicLosses getModelById(String id);

    EconomicLosses getDefaultModel();

    List<EconomicLosses> getByDivision(String province, String city, int isNa);

    EconomicLosses getModelByIdForCopy(String id);

    void save(EconomicLosses economicLosses);

    void update(EconomicLosses economicLosses);

    void delete(String id);

    RestResponse calculate(String taskId,String range) throws Exception;

    public RestResponse savePbeLosses(String modeId, String taskId, String tab,String range) throws Exception;

    List<DataPbeLosses> getPbeByTaskIdAndIntensity(String taskId, String dzIntensity);

    //sss
    EconomicLosses getModel1ById(String model3Id);

    DataPbeLosses findByTaskIdLimit(String taskId);

    void exportPbeInjuries(String taskId, HttpServletResponse resp) throws Exception;
}
